package com.lw.yygh.hosp.feign;

import com.lw.yygh.model.order.SignInfoVo;
import com.lw.yygh.vo.hosp.ScheduleOrderVo;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-hosp")
@Repository
public interface HospFeignClient {
    //根据排班id获取预约下单数据
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    public ScheduleOrderVo getScheduleOrderVo(
            @PathVariable("scheduleId") String scheduleId);
    //获取医院签名信息
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    public SignInfoVo getSignInfoVo(
            @PathVariable("hoscode") String hoscode);
    @GetMapping("/api/hosp/hospital/inner/updateSchedule/{scheduleId}")
    public void updateSchedule(@PathVariable String scheduleId);
}
